<!DOCTYPE html>
<html>
<head>
    <title>JS数组</title>
    <meta charset="utf-8"/>
    <script src="../../js/jquery-1.10.1.min.js"></script>
    <script>
        //n. 合并多个数组；合并多个字符串
        var colors = ["red", "green", "blue"];
        var colors2 = colors.concat("yellow", ["black", "brown"], "aa");
        alert(colors2);
        alert(colors);
        var tempColors = colors;
        colors.splice(0, 1);
        alert("tempColors:" + tempColors);
    </script>
</head>
<body>
    <p>JS数组</p>
</body>
</html>